package org.example.cases;

import com.framework.test.core.BaseTest;
import com.framework.test.core.CSVDataProvider;
import com.framework.test.utils.RestUtil;
import org.testng.annotations.Test;

import static org.hamcrest.Matchers.*;

public class MyTestClass extends BaseTest {

    @Test(dataProvider = "csvReader", dataProviderClass = CSVDataProvider.class)
    public void testLogin(String caseTitle, String username, String password) throws InterruptedException {
        RestUtil.init()
                .path("/api/weather/city/{cityId}")
                .pathParam("cityId", "101010100")
                .get()
                .response()
                .then()
                .assertThat()
                .statusCode(200)
                .body("status", equalTo(200));

    }
}
